// 公共路由

export default [
    {
        path: '/',
        redirect: '/home',
    },
    {
        path: '/login',
        name: 'login',
        component: () => import('@/views/login/index.vue')
    },
    {
        path: '/home',
        name: 'home',
        component: () => import('@/layout/index.vue'),
        children: [
            {
                path: 'todolist',
                name: 'todolist',
                component: () => import('@/views/home/index.vue')
            },
            {
                path: 'my',
                name: 'my',
                component: () => import('@/views/home/index.vue'),
                meta: {
                    title: '首页',
                    icon: '<el-icon><House /></el-icon>'
                }
            }
        ]

    },

    {
        path: '/404',
        name: '404',
        component: () => import('@/pages/404.vue')
    }
]
